home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / man / cat.3 / AppInit.3 < prev    next >
Text File  |  1995-07-25  |  3KB  |  67 lines

  1.  
  2.  
  3.  
  4.      TTTTccccllll____AAAAppppppppIIIInnnniiiitttt((((3333))))              TTTTccccllll ((((7777....0000))))              TTTTccccllll____AAAAppppppppIIIInnnniiiitttt((((3333))))
  5.  
  6.  
  7.  
  8.      _________________________________________________________________
  9.  
  10.      NNNNAAAAMMMMEEEE
  11.           Tcl_AppInit - Perform application-specific initialization
  12.  
  13.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  14.           ####iiiinnnncccclllluuuuddddeeee <<<<ttttccccllll....hhhh>>>>
  15.  
  16.           TTTTccccllll____AAAAppppppppIIIInnnniiiitttt(_i_n_t_e_r_p)
  17.  
  18.      AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  19.           Tcl_Interp   *_i_n_t_e_r_p   (in)      Interpreter     for     the
  20.                                            application.
  21.      _________________________________________________________________
  22.  
  23.  
  24.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  25.           TTTTccccllll____AAAAppppppppIIIInnnniiiitttt is a procedure  that  is  invoked  by  the  main
  26.           programs  for  Tcl applications such as ttttccccllllsssshhhh and wwwwiiiisssshhhh.  Its
  27.           purpose is to allow  new  Tcl  applications  to  be  created
  28.           without  modifying  existing main programs such as those for
  29.           ttttccccllllsssshhhh and wwwwiiiisssshhhh.  To create a new application simply write  a
  30.           new  version  of  TTTTccccllll____AAAAppppppppIIIInnnniiiitttt to replace the default version
  31.           provided by Tcl, then link your new TTTTccccllll____AAAAppppppppIIIInnnniiiitttt with the Tcl
  32.           library, which contains the main program from ttttccccllllsssshhhh (be sure
  33.           to specify the switch ``----uuuu ____mmmmaaaaiiiinnnn'' to the linker to force it
  34.           to use the version of mmmmaaaaiiiinnnn from the Tcl library).
  35.  
  36.           TTTTccccllll____AAAAppppppppIIIInnnniiiitttt is invoked after other  initialization  in  mmmmaaaaiiiinnnn
  37.           and before entering the main loop to process commands.  Here
  38.           are some examples of things that TTTTccccllll____AAAAppppppppIIIInnnniiiitttt might do:
  39.  
  40.           [1]  Call initialization  procedures  for  various  packages
  41.                used by the application.  Each initialization procedure
  42.                adds  new  commands  to  _i_n_t_e_r_p  for  its  package  and
  43.                performs other package-specific initialization.
  44.  
  45.           [2]  Process command-line arguments, which can  be  accessed
  46.                from the Tcl variables aaaarrrrggggvvvv and aaaarrrrggggvvvv0000 in _i_n_t_e_r_p.
  47.  
  48.           [3]  Invoke a startup script to initialize the application.
  49.  
  50.  
  51.      KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
  52.           application, argument, command, initialization, interpreter
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 7/10/95)
  64.  
  65.  
  66.  
  67.